package cn.zpfppthomework01;

public class Seller {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //销售的方法
    //按类型
    public void sell(Excelle excelle) {
        System.out.println(this.name + "正在卖的车型：" + excelle.getType() + "\t编号：" + excelle.getId());
    }

    public void sell(Regal regal) {
        System.out.println(this.name + "正在卖的车型：" + regal.getType());
    }

    //按类型和数量
    public void sell(Excelle excelle, int num) {
        System.out.println(this.name + "销售的车型：" + excelle.getType() + "\t数量是：" + num);
    }
}
